SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 54863: Long-running SAS® stored process requests might not be able to publish a permanent package to WebDAV

DetailsAboutRate It

If a SAS® stored process request requires more than 5 minutes to complete execution, then it might not be able to publish a permanent package to the SAS® Content Server's WebDAV repository.

A SAS stored process request, by default, uses a One-Time-Password (OTP) to connect to a WebDAV server. The OTP is created before the stored process begins execution, and it expires in 5 minutes. So, if a stored process requires more than 5 minutes to complete execution and it tries to publish a permanent package to WebDAV (and uses the OTP), then the following error messages appears in a SAS® 9.3 stored process log file:

  ERROR: WEBDAV transport engine encountered errors while publishing the package.
  ERROR: The result package could not be created.  The error encountered was:   
  ERROR: The MKCOL request failed with an HTTP status of 401 (Unauthorized). 
  

And a warning message similar to the following appears in the SAS® Metadata Server log file:

  Access Denied due to expired SAS token from sasdemo.
  New client connection (829) rejected from server port 8561 for user sasdemo@!* generatedpassworddomain)*!. 

In SAS® 9.4, the stored process log contains the following error messages:

  ERROR: WEBDAV transport engine encountered errors while publishing the package.
  ERROR: The result package could not be created.  The error encountered was:  
  ERROR: Unauthorized: Check username/password. 
 

As a workaround, you could specify a user account and password in the stored process code to connect to the WebDAV server. Then, this user account is used and the expired OTP is not used. Here is an example:

  options nosource;   /* Turn off source logging  */
  %let _HTTP_USER=sasdemo;
  %let _HTTP_PASSWORD=your_password_here;
  options source;     /* Turn on logging again. */

  %stpend;            /* For debugging use: %stpend(debug=1);  */ 

Note: You can use the PWENCODE procedure to encode the password that you specify for the _HTTP_PASSWORD macro variable value.



Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemSAS Integration Technologiesz/OS9.3 TS1M29.4 TS1M3
Microsoft® Windows® for x649.3 TS1M29.4 TS1M3
Microsoft Windows 8 Enterprise 32-bit9.3 TS1M29.4 TS1M3
Microsoft Windows 8 Enterprise x649.3 TS1M29.4 TS1M3
Microsoft Windows 8 Pro 32-bit9.3 TS1M29.4 TS1M3
Microsoft Windows 8 Pro x649.3 TS1M29.4 TS1M3
Microsoft Windows 8.1 Enterprise 32-bit9.3 TS1M29.4 TS1M3
Microsoft Windows 8.1 Enterprise x649.3 TS1M29.4 TS1M3
Microsoft Windows 8.1 Pro9.3 TS1M29.4 TS1M3
Microsoft Windows 8.1 Pro 32-bit9.3 TS1M29.4 TS1M3
Microsoft Windows Server 2003 Datacenter Edition9.3 TS1M2
Microsoft Windows Server 2003 Enterprise Edition9.3 TS1M2
Microsoft Windows Server 2003 Standard Edition9.3 TS1M2
Microsoft Windows Server 2003 for x649.3 TS1M2
Microsoft Windows Server 20089.3 TS1M29.4 TS1M3
Microsoft Windows Server 2008 R29.3 TS1M29.4 TS1M3
Microsoft Windows Server 2008 for x649.3 TS1M29.4 TS1M3
Microsoft Windows Server 2012 Datacenter9.3 TS1M29.4 TS1M3
Microsoft Windows Server 2012 R2 Datacenter9.3 TS1M29.4 TS1M3
Microsoft Windows Server 2012 R2 Std9.3 TS1M29.4 TS1M3
Microsoft Windows Server 2012 Std9.3 TS1M29.4 TS1M3
Microsoft Windows XP Professional9.3 TS1M2
Windows 7 Enterprise 32 bit9.3 TS1M29.4 TS1M3
Windows 7 Enterprise x649.3 TS1M29.4 TS1M3
Windows 7 Home Premium 32 bit9.3 TS1M29.4 TS1M3
Windows 7 Home Premium x649.3 TS1M29.4 TS1M3
Windows 7 Professional 32 bit9.3 TS1M29.4 TS1M3
Windows 7 Professional x649.3 TS1M29.4 TS1M3
Windows 7 Ultimate 32 bit9.3 TS1M29.4 TS1M3
Windows 7 Ultimate x649.3 TS1M29.4 TS1M3
Windows Vista9.3 TS1M2
Windows Vista for x649.3 TS1M2
64-bit Enabled AIX9.3 TS1M29.4 TS1M3
64-bit Enabled HP-UX9.3 TS1M29.4 TS1M3
64-bit Enabled Solaris9.3 TS1M29.4 TS1M3
HP-UX IPF9.3 TS1M29.4 TS1M3
Linux9.3 TS1M29.4 TS1M3
Linux for x649.3 TS1M29.4 TS1M3
Solaris for x649.3 TS1M29.4 TS1M3
SAS SystemN/Az/OS9.4 TS1M2
Z649.4 TS1M2
Apple Mobile Operating System9.4 TS1M2
Microsoft® Windows® for 64-Bit Itanium-based Systems9.4 TS1M2
Microsoft® Windows® for x649.4 TS1M2
SAS Cloud9.4 TS1M2
Microsoft Windows 8 Enterprise 32-bit9.4 TS1M2
Microsoft Windows 8 Enterprise x649.4 TS1M2
Microsoft Windows 8 Pro 32-bit9.4 TS1M2
Microsoft Windows 8 Pro x649.4 TS1M2
Microsoft Windows 8.1 Enterprise 32-bit9.4 TS1M2
Microsoft Windows 8.1 Enterprise x649.4 TS1M2
Microsoft Windows 8.1 Pro9.4 TS1M2
Microsoft Windows 8.1 Pro 32-bit9.4 TS1M2
Microsoft Windows Server 20089.4 TS1M2
Microsoft Windows Server 2008 R29.4 TS1M2
Microsoft Windows Server 2008 for x649.4 TS1M2
Microsoft Windows Server 2012 Datacenter9.4 TS1M2
Microsoft Windows Server 2012 R2 Datacenter9.4 TS1M2
Microsoft Windows Server 2012 R2 Std9.4 TS1M2
Microsoft Windows Server 2012 Std9.4 TS1M2
Windows 7 Enterprise 32 bit9.4 TS1M2
Windows 7 Enterprise x649.4 TS1M2
Windows 7 Home Premium 32 bit9.4 TS1M2
Windows 7 Home Premium x649.4 TS1M2
Windows 7 Professional 32 bit9.4 TS1M2
Windows 7 Professional x649.4 TS1M2
Windows 7 Ultimate 32 bit9.4 TS1M2
Windows 7 Ultimate x649.4 TS1M2
64-bit Enabled AIX9.4 TS1M2
64-bit Enabled HP-UX9.4 TS1M2
64-bit Enabled Solaris9.4 TS1M2
HP-UX IPF9.4 TS1M2
Linux9.4 TS1M2
Linux for x649.4 TS1M2
Solaris for x649.4 TS1M2
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.